package Z02IOStream.W05CharStream;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Chartest {}

class CharStream{

    public static void main(String[] args) throws IOException {


    File f = new File("c:/LOL.txt");

        try(FileReader fr = new FileReader(f)){
            char[] all = new char[(int) f.length()];
            fr.read(all);

            for(char b : all){
                System.out.println(b);
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }


}}
